package com.yonyou.ucf.mdf.app.isvdxq.other.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.Gson;
import com.yonyou.iuap.yms.param.BaseEntity;
import com.yonyou.iuap.yms.annotation.*;

/**
 * QualityOrg\PurchaseOrg\SalesOrg
 * functypes	string	否	职能类型, orgunit:组织单元、
 * salesorg:销售组织、purchaseorg:采购组织、inventoryorg:库存组织、
 * factoryorg:工厂组织、financeorg:会计主体、assetsorg:资产组织、
 * taxpayerorg:纳税主体、
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@YMSEntity
@YMSTable(tableName = "dxqyy_orgbase")
public class OrgBaseEntity extends BaseEntity {

    private String id;

    private String parentid;

    @YMSColumn(name = "parentid_name")

    private String parentid_name;

    private int dr;

    private int enable;

    private String effectivedate;

    private String pubts;

    //inventoryOrg 库存组织关联会计主体
    private String finorgid;

    @YMSColumn(name = "finorgid_name")
    private String finorgid_name;

    //adminOrg 人力组织关联主体
    private String parentorgid;

    @YMSColumn(name = "parentorgid_name")
    private String parentorgid_name;

    //financeOrg 会计主体
    private String currency;

    //人民币
    @YMSColumn(name = "currency_name")
    private String currency_name;

    private Boolean isinternalaccounting;

    private Boolean isexternalaccounting;

    //基准会计期间方案
    @YMSColumn(name = "periodschema_name")
    private String periodschema_name;

    private String periodschema;

    private String orgtype;

    @YMSColumn(name = "ytenant_id")
    private String tenant_id;

    public Boolean getIsinternalaccounting() {
        return isinternalaccounting;
    }

    public void setIsinternalaccounting(Boolean isinternalaccounting) {
        this.isinternalaccounting = isinternalaccounting;
    }

    public Boolean getIsexternalaccounting() {
        return isexternalaccounting;
    }

    public void setIsexternalaccounting(Boolean isexternalaccounting) {
        this.isexternalaccounting = isexternalaccounting;
    }

    public String getTenant_id() {
        return tenant_id;
    }

    public void setTenant_id(String tenant_id) {
        this.tenant_id = tenant_id;
    }

    public String getOrgtype() {
        return orgtype;
    }

    public void setOrgtype(String orgtype) {
        this.orgtype = orgtype;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentid() {
        return parentid;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid;
    }

    public String getParentid_name() {
        return parentid_name;
    }

    public void setParentid_name(String parentid_name) {
        this.parentid_name = parentid_name;
    }

    public int getDr() {
        return dr;
    }

    public void setDr(int dr) {
        this.dr = dr;
    }

    public int getEnable() {
        return enable;
    }

    public void setEnable(int enable) {
        this.enable = enable;
    }

    public String getEffectivedate() {
        return effectivedate;
    }

    public void setEffectivedate(String effectivedate) {
        this.effectivedate = effectivedate;
    }

    public String getPubts() {
        return pubts;
    }

    public void setPubts(String pubts) {
        this.pubts = pubts;
    }

    public String getFinorgid() {
        return finorgid;
    }

    public void setFinorgid(String finorgid) {
        this.finorgid = finorgid;
    }

    public String getFinorgid_name() {
        return finorgid_name;
    }

    public void setFinorgid_name(String finorgid_name) {
        this.finorgid_name = finorgid_name;
    }

    public String getParentorgid() {
        return parentorgid;
    }

    public void setParentorgid(String parentorgid) {
        this.parentorgid = parentorgid;
    }

    public String getParentorgid_name() {
        return parentorgid_name;
    }

    public void setParentorgid_name(String parentorgid_name) {
        this.parentorgid_name = parentorgid_name;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getCurrency_name() {
        return currency_name;
    }

    public void setCurrency_name(String currency_name) {
        this.currency_name = currency_name;
    }

    public String getPeriodschema_name() {
        return periodschema_name;
    }

    public void setPeriodschema_name(String periodschema_name) {
        this.periodschema_name = periodschema_name;
    }

    public String getPeriodschema() {
        return periodschema;
    }

    public void setPeriodschema(String periodschema) {
        this.periodschema = periodschema;
    }
}
